package com.wsjzzcbq.qianyuan.common.util;

import org.apache.commons.codec.digest.Md5Crypt;

/**
 * PasswordUtils
 *
 * @author wsjz
 * @date 2022/03/10
 */
public class PasswordUtils {

    public static String encrypt(String password, String salt) {
        return Md5Crypt.apr1Crypt(Md5Crypt.apr1Crypt(password,salt), salt);
    }

//    public static void main(String[] args) {
//        String password = "123456";
//        String salt = "bob";
//        System.out.println(encrypt(password, salt));
//    }
}
